package com.yike.user.convert;

import com.yike.user.api.vo.UserVo;
import com.yike.user.entity.User;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface UserFeignConvert {

    UserFeignConvert INSTANCE = Mappers.getMapper(UserFeignConvert.class);

    UserVo convert(User user);

    List<UserVo> convert(List<User> users);
}
